package cn.com.mall.product.vo;

import cn.com.mall.product.entity.SkuImagesEntity;
import cn.com.mall.product.entity.SkuInfoEntity;
import cn.com.mall.product.entity.SpuInfoDescEntity;
import lombok.Data;

import java.util.List;

@Data
public class SkuItemVo {


    //1、获取sku基本信息
    SkuInfoEntity skuInfoEntity;

    //2、获取sku的图片信息
    List<SkuImagesEntity> images;

    //3、当前spu的销售属性组合
    List<SkuItemSaleAttrVo> saleAttr;

    //4、spu的介绍
    SpuInfoDescEntity desc;

    //5、获取spu的规格参数信息
    List<SpuItemAttrGroupVo> groupAttrs;


    @Data
    public static class SkuItemSaleAttrVo{

        private Long attrId;

        private String attrName;

        private List<String> attrValues;

    }

    @Data
    public static class SpuItemAttrGroupVo{
        private String groupName;
        private List<SpuBaseAttrVo> attrValues ;

    }

    @Data
    public static class SpuBaseAttrVo{
        private String attrName;
        private String attrValues;
    }



}
